package main.model.hexisland.tile;

/**
 * Created with IntelliJ IDEA.
 * User: gabe
 * Date: 21/06/13
 * Time: 20:07
 * To change this template use File | Settings | File Templates.
 */
public class TileRock implements Tile{
    @Override
    public TileType getType() {
        return TileType.ROCK;
    }

    @Override
    public int eat() {
        return 0;
    }

    @Override
    public int tastyLook() {
        return 0;
    }

    @Override
    public void dayPass() {

    }

    @Override
    public boolean hasCentralObstacle() {
        return true;
    }

    @Override
    public boolean isAccessible() {
        return true;
    }


    public boolean equals(Object obj){
        if(obj == this) return true;
        if(!(obj instanceof TileRock)) return false;
        else return true;
    }

    public String toString(){
        return getType().toString();
    }

    public int hashCode(){
        return this.toString().hashCode();
    }
}
